var i;
Object.defineProperty(exports, "__esModule", {
  value: true
});
var _decorator = cc._decorator;
var _ccclass = _decorator.ccclass;
var _property = _decorator.property;
var _def_lookMemery = function (e) {
  function _creator() {
    var t = null !== e && e.apply(this, arguments) || this;
    t.label = null;
    t.text = "hello";
    t.offtime = 0;
    return t;
  }
  __extends(_creator, e);
  _creator.prototype.start = function () {};
  _creator.prototype.getImageMemory = function () {
    var e = cc.assetManager.assets;
    var t = [];
    e.forEach(function (e) {
      e instanceof cc.SpriteFrame && t.push(e);
    });
    t.sort(function (e, t) {
      return t.getTexture().height * t.getTexture().width - e.getTexture().height * e.getTexture().width;
    });
    var o = "";
    var n = 0;
    t.forEach(function (e) {
      var t = e.getTexture();
      var i = e.getOriginalSize();
      var a = t._native;
      var r = t._uuid;
      var c = i.width * i.height * (a.indexOf("jpg") > 0 ? 3 : 4) / 1024 / 1024 * 1e4 / 1e4;
      n += c;
      o = o + "\n" + r + a + "...." + c + "M";
      console.log("内存占用:", r + a + e.name + "\n占用内存:" + c.toFixed(2) + "M");
    });
    n = Math.floor(1e4 * n) / 1e4;
    o = "Total Image Mem...." + n + "M" + o;
    console.log("Image Mem==", o);
    console.log("共占用内存:" + n.toFixed(2) + "M");
    return n.toFixed(2);
  };
  _creator.prototype.updateMonegy = function () {};
  _creator.prototype.update = function () {};
  __decorate([_property(cc.Label)], _creator.prototype, "label", undefined);
  __decorate([_property], _creator.prototype, "text", undefined);
  return __decorate([_ccclass], _creator);
}(cc.Component);
exports.default = _def_lookMemery;